from tqdm.rich import tqdm
from time import sleep
import tkinter as tk
from tkinter import ttk
def update_progress():
    bar = tqdm(total=100) #游戏更新总数据
    bar.set_description("联网成功")
    sleep(5)
    bar.update(50)
    bar.set_description("开始下载")
    sleep(5)
    bar.update(49)#更新数据.........
    sleep(30)
root = tk.Tk()
root.title("进度条示例")
progress = ttk.Progressbar(root, orient=tk.HORIZONTAL,
                           length=100,mode="determinate")
progress.pack(pady=15)
update_progress()
root.mainloop()